<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/31
 * Time: 17:35
 */

namespace app\admin\model;


class CouponTickets extends BaseModel
{
    public function user()
    {
        return $this->belongsTo('user','user_id','id');
    }

    public function activity()
    {
        return $this->belongsTo('activity','activity_id','id');
    }

    public function couponCategory()
    {
        return $this->belongsTo('CouponCategory','coupon_category_id','id');
    }
}